import 'package:flutter/material.dart';

class CartPage extends StatefulWidget {
  const CartPage({super.key});

  @override
  State<CartPage> createState() => _CartPageState();
}
class _CartPageState extends State<CartPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        //背景颜色
        backgroundColor: Colors.red,
        //前景颜色：控制文字和图标颜色
        foregroundColor: Colors.white,
        // 标题居中
        centerTitle: true,
        title: const Text('购物车'),
      ),
      body: const Text('购物车'),
    );
  }
}